package com.xkdx.guangguang.card;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;
import com.xkdx.guangguang.module.statics.IConstants;

public class CardInfoAction extends AbsAction {
	String BankID, Con1, Con2, Con1value, Latitude, Longitude, PageIndex,
			PageSize, cityID;

	public CardInfoAction(String BankID, String Con1, String Con2,
			String Con1value, String Latitude, String Longitude,
			String PageIndex, String PageSize, String cityID) {
		this.url = IConstants.INFO_URL;
		this.BankID = BankID;
		this.Con1 = Con1;
		this.Con2 = Con2;
		this.Con1value = Con1value;
		this.Latitude = Latitude;
		this.Longitude = Longitude;
		this.PageIndex = PageIndex;
		this.PageSize = PageSize;
		this.cityID = cityID;

	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("BankID", BankID);
		map.put("Con1", Con1);
		map.put("Con2", Con2);

		map.put("Con1value", Con1value);
		map.put("Latitude", Latitude);
		map.put("Longitude", Longitude);
		map.put("City", cityID);

		map.put("PageIndex", PageIndex);
		map.put("PageSize", PageSize);
		String json = constructJson(map);
//		requestData = json;
		Parameter parameter = new Parameter("CardChapterAction",
				"getCardListByCondition", json);

		Parameter parameter2 = new Parameter("CardChapterAction",
				"getBankList", "\"\"");

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		list.add(parameter2);
		requestData = constructMod(list);

	}

}
